class CreateArticles < ActiveRecord::Migration
  def self.up
    create_table :articles do |t|
      t.string :title
      t.references :article_category
      t.integer :article_order
      t.string :come_from
      t.string :short_description
      t.boolean :recommend
      t.string :key_word
      t.integer :click_count
      t.string :image_name

      t.timestamps
    end
  end

  def self.down
    drop_table :articles
  end
end
